package com.example.sample.controller;

import com.example.sample.Infrastructure.Model.Command.OrderChangeCompleteCommand;
import com.example.sample.Infrastructure.Model.Enum.PaymentType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.loadbalancer.LoadBalancerClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.client.RestTemplate;

@RequestMapping("/riddon")
public class RiddonController {

    @Autowired
    private LoadBalancerClient client;

    @GetMapping("post")
    public void Post() {

        OrderChangeCompleteCommand cmd = new OrderChangeCompleteCommand("ucog09r7uj9c",10, "2021-02-21", "2021-02-21", PaymentType.BalancePaymentReceiveRefund,"德玛西亚","附件");

       // RestTemplate.postForObject("http://localhost:5020/orders/v1/OrderChange/complete", cmd, Object.class);
    }
}
